package com.jxb.myshop.dao;

import com.jxb.myshop.entity.Address;

import java.sql.SQLException;
import java.util.List;

public interface AddressDao {
    List<Address> getUserAddress(int uid) throws SQLException;

    int addAddress(Address add) throws SQLException;

    int deleteAddress(int aid) throws SQLException;

    int updateAddress(Address a) throws SQLException;

    int setAddressNotDefault(int uid) throws SQLException;

    int setAddressDefault(int aid) throws SQLException;
}
